﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace TianShu.LicenseAuthorizer.Abstracts.Config
{
    public class LicenseLoaderOptions
    {
        private static List<string> _loadLicenseFileDirs=new List<string>();

        public void Add(string dir)
        {
            _loadLicenseFileDirs.Add(dir);
        }

        public List<string> GetAllDirList()
        {
            return _loadLicenseFileDirs;
        }
        public List<string> GetAllAbsoultDirList()
        {
            return _loadLicenseFileDirs.Select(e=>Path.Combine(AppDomain.CurrentDomain.BaseDirectory,e)).ToList();
        }
    }
}
